package com.xx.cloud.pay.service;

import com.github.binarywang.wxpay.bean.notify.SignatureHeader;
import com.github.binarywang.wxpay.bean.request.WxPayRefundV3Request;
import com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderV3Request;
import com.github.binarywang.wxpay.exception.WxPayException;
import com.xx.cloud.pay.entity.CreateOrderEntity;
import com.xx.cloud.pay.result.R;
import jakarta.servlet.http.HttpServletRequest;

public interface PayUnifyService {

    R createOrder(CreateOrderEntity createOrderEntity) throws WxPayException;

    String parseOrderNotifyResultPersonV3(String notifyData, HttpServletRequest request);

    R refundV33(WxPayRefundV3Request request);

    R<?> closeOrderV33(WxPayUnifiedOrderV3Request request);
}
